<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>登录页面</title>
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.css}" rel="stylesheet">
    <link th:href="@{/css/animate.css}" rel="stylesheet">
    <link th:href="@{/css/style.css}" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">
<div class="bg"></div>
    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">DX</h1>

            </div>
            <h3>欢迎使用 图书管理系统</h3>

            <form class="m-t" role="form" th:action="@{/account/login}" method="post">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="用户名" name="username" value="袁湘琴" data-validate="required:请填写账号" style="color: #212a31">
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" placeholder="密码" name="password" value="123" data-validate="required:请填写密码" style="color: #212a31">
                </div>

<!--                <div class="form-group">-->
<!--                    <div class="input-group">-->
<!--                        <input type="text" class="form-control" name="verCode" placeholder="填写右侧的验证码" value="1111" data-validate="required:请填写右侧的验证码" style="color: #212a31"/>-->
<!--                        <span class="input-group-addon no-padding" style="width: 100px"><img th:src="@{/captcha}" alt="" width="100" height="32" class="passcode" onclick="this.src=this.src+'?'"></span>-->
<!--                    </div>-->
<!--                </div>-->

                    <div class="form-group">

                        <label class="checkbox-inline">
                            <input type="radio" checked="" value="读者"  name="role">用户</label>
                        <label class="checkbox-inline">
                            <input type="radio" value="管理员"  name="role">管理员</label>
<!--                        <label class="checkbox-inline">-->
<!--                            <input type="radio" value="平台管理员" name="role">平台管理员</label>-->
                    </div>

                    <div th:if="${error}">
                        <span id="error" style="color: red" th:text="${error}"></span>
                        <br/>
                    </div>


                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>


                <p class="text-muted text-center"> <a th:href="@{#}"><small style="color: red">忘记密码了？</small></a> | <a th:href="@{/account/toRegister}" style="color: red">注册一个新账号</a>
                </p>

            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>




</body>

</html>
